package com.example.zjx8969.myapplication;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import androidx.annotation.Nullable;
import android.util.Log;

public class SdkInitService extends Service {

    boolean stop = false;

    @Override
    public void onCreate() {
        super.onCreate();
        logContent("onCreate");
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        logContent("onBind");
        return null;

    }


    @Override
    public boolean onUnbind(Intent intent) {
        logContent("onUnbind");

        return super.onUnbind(intent);
    }


    @Override
    public void onDestroy() {
        logContent("onDestroy");
        stop = true;
        super.onDestroy();
    }




    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {

        return super.onStartCommand(intent, flags, startId);
    }

    private void logContent(String content) {
        Log.e("tag", content);
    }

}
